Skip to content

fix: set Gollum base_path and init git with main branch#68

Merged
ethanshenley merged 1 commit intomainfrom
fix/gollum-wiki-routing
Feb 13, 2026
Merged

fix: set Gollum base_path and init git with main branch#68
ethanshenley merged 1 commit intomainfrom
fix/gollum-wiki-routing

Conversation

@tensor-ninja
Copy link
Collaborator

@tensor-ninja tensor-ninja commented Feb 13, 2026

Summary

  • Adds base_path: 'wiki' to generated gollum_config.rb so Gollum prefixes all URLs with /wiki (CSS, JS, /gollum/* pages)
  • Uses git init -b main instead of git init to ensure the workspace branch matches Gollum's --ref main

Two issues prevented the wiki from working on provisioned VMs:

1. Gollum generated all links (CSS, JS, /gollum/* pages) relative to
   root, but Caddy mounts it at /wiki. Adding base_path: 'wiki' to the
   config makes Gollum prefix all URLs correctly.

2. git init creates a 'master' branch by default on some systems, but
   Gollum is started with --ref main. Using git init -b main ensures
   the branch always matches.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ethanshenley ethanshenley merged commit 88d7a2b into main Feb 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants